//
//  SingleCommentCell.m
//  Shengzhuli
//
//  Created by subook on 2017/8/18.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "SingleCommentCell.h"

@implementation SingleCommentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configUI];
    }
    return self;
}
- (void)configUI {
    
    _singleCommentLabel = [[UILabel alloc] init];
    _singleCommentLabel.text = @"蚌埠拉地洞:泵冬不拉地泵用户在享受会员服务后发布的任何内容并不反映或代表玩转地球的观";
    _singleCommentLabel.numberOfLines = 0;
    _singleCommentLabel.font = [UIFont systemFontOfSize:14];
    _singleCommentLabel.textColor = [UIColor lightGrayColor];
    _singleCommentLabel.lineBreakMode = NSLineBreakByTruncatingMiddle;
    CGSize maxSize = CGSizeMake(ScreenW-40, 9990);
    CGSize expectSize = [_singleCommentLabel sizeThatFits:maxSize];
    _singleCommentLabel.frame = CGRectMake(20, 20, expectSize.width, expectSize.height);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
